<template>
	<view>
		<view class="pageBox">
			<view class="pagesTop"></view>
			<view class="contents">
				<view class="srviceTitle">
					<view class="namesTit">一对一专业陪诊（半天陪诊）</view>
					<view>
						<text class="fontCase">超值价：</text>
						<text class="fontMony">288.00</text>
						<text class="fontFot">元/次</text> 
					</view>
				</view>
			</view>
			<view class="paddingBox">
				<u-tabs 
				    :list="tabs" 
					@change="changeTabs" 
					:scrollable="false" 
					:current='current' 
					lineColor="#0782C9" 
					:activeStyle="{color: '#0782C9',fontWeight: 'bold'}">
				</u-tabs>
				<view class="msgConts">
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
					<view>1</view>
				</view>
			</view>
		</view>
		<view class="addfoot">
			<u-row>
				<u-col :span="6">
					<view class="addBtn addBtn2">联系客服</view>
				</u-col>
				<u-col :span="6">
					<view class="addBtn" @click="gotoPay">立即购买</view>
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				current:0,
				tabs:[
					{
						name:'基本信息',
						id:1
					},
					{
						name:'价格说明',
						id:2
					},
					{
						name:'预定须知',
						id:3
					}
				]
			}
		},
		methods:{
			changeTabs(e){
				console.log(e);
				this.current = e.index;
			},
			gotoPay(){
				uni.navigateTo({
					url:'/subpages/pages-service/places/places'
				})
			},
		}
	}
</script>

<style lang="scss">
	body {
		background-color: $uni-bg-color-grey;
	}
	.pageBox{
		padding-bottom: 140rpx;
	}
	.pagesTop {
		width: 100%;
		height: 300rpx;
		background: linear-gradient(to left, $uni-aicloud, $uni-aicloud-gradation);
	}
	.contents{
		margin-top: -100rpx; padding: 20rpx;
	}
	.srviceTitle{
		padding: 40rpx;
		background: #ffffff;
		box-shadow: 3rpx 3rpx 6rpx 0 #D3D0D0;
		border-radius: 10rpx;
		overflow: hidden;
	}
	.namesTit{
		margin-bottom: 20rpx;
		color: #0782C9;
		font-weight: bold;
	}
	.fontCase{
		font-size: 24rpx;
	}
	.fontMony{
		font-weight: bold;
		color: #F9865A;
	}
	.fontFot{
		font-size: 24rpx;
		color: #F9865A;
	}
	.paddingBox{
		padding:0 20rpx 20rpx 20rpx;
	}
	.msgConts{
		background: #ffffff;
		box-shadow: 3rpx 3rpx 6rpx 0 #D3D0D0;
		border-radius: 10rpx;
		overflow: hidden;
		margin-top: 20rpx;
		padding: 10rpx;
	}
	.addfoot {
		position: fixed;
		bottom: 0;
		width: 100%;
		height: 140rpx;
		box-shadow: 0 -5rpx 10rpx #D3D0D0;
		background: #ffffff;
	}
	.addBtn {
		width: 90%;
		height: 80rpx;
		text-align: center;
		line-height: 80rpx;
		background: linear-gradient(to left, $uni-aicloud, $uni-aicloud-gradation);
		color: #ffffff;
		font-size: 28rpx;
		border-radius: 80rpx;
		margin: 30rpx auto;
	}
	.addBtn2{
		background: #ffffff;
		color: #0782C9;
		border: 1px #0782C9 solid;
	}
</style>